package com.lishe.lishe.lishe.module.myorder.bean;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.SerializedName;

/**
 * Created by yang on 2018/1/31.
 * 快递信息
 */

public class CourierObject implements Parcelable{

    @SerializedName("time")
    private String time;//时间

    @SerializedName("note")
    private String note;//内容

    @SerializedName("operator")
    private String operator;//工作人员

    protected CourierObject(Parcel in) {
        time = in.readString();
        note = in.readString();
        operator = in.readString();
    }

    public static final Creator<CourierObject> CREATOR = new Creator<CourierObject>() {
        @Override
        public CourierObject createFromParcel(Parcel in) {
            return new CourierObject(in);
        }

        @Override
        public CourierObject[] newArray(int size) {
            return new CourierObject[size];
        }
    };

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(time);
        dest.writeString(note);
        dest.writeString(operator);
    }
}
